package cn.wolfcode.education.mapper;

import cn.wolfcode.education.domain.Dept;
import cn.wolfcode.education.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptMapper {

    int insert(Dept record);

    Dept selectByPrimaryKey(Long id);

    List<Dept> selectAll();

    int updateByPrimaryKey(Dept record);



    Integer queryForCount(QueryObject qo);

    List queryForList(QueryObject qo);
   //该变状态
    void updateStateById(@Param("id") Long id, @Param("state") int state);

    List<Long> getAllManagerId();

    List<Long> getDeptIdsByManagerId(Long manager);

    void update(Dept dept);
}